package com.ruoyi.door.controller.admin.house.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class DoorHouseImportVO {

    @Excel(name = "公司")
    @ApiModelProperty("公司")
    @ExcelProperty(value = "公司")
    private String countryName;
    /**
     * 省
     */
    @Excel(name = "省")
    @ApiModelProperty("省")
    @ExcelProperty(value = "省")
    private String provinceName;

    /**
     * 市
     */
    @Excel(name = "市")
    @ApiModelProperty("市")
    @ExcelProperty(value = "市")
    private String cityName;

    /**
     * 区
     */
    @Excel(name = "区")
    @ApiModelProperty("区")
    @ExcelProperty(value = "区")
    private String districtName;

    /**
     * 街道
     */
    @Excel(name = "镇街")
    @ApiModelProperty("镇街")
    @ExcelProperty(value = "镇街")
    private String streetName;

    /**
     * 村
     */
    @Excel(name = "村名")
    @ApiModelProperty("村名")
    @ExcelProperty(value = "村名")
    private String villageName;

    /**
     * 详细地址
     */
    @Excel(name = "详细地址(门牌号)")
    @ApiModelProperty("详细地址(门牌号)")
    @ExcelProperty(value = "详细地址(门牌号)")
    private String address;


    /**
     * 房东
     */
    @Excel(name = "房东姓名")
    @ExcelProperty(value = "房东姓名")
    private String landlordName;

    @ApiModelProperty("房东电话")
    @ExcelProperty(value = "房东电话")
    @Excel(name = "房东电话")
    private String landlordPhone;

    @Excel(name = "门禁编码")
    @ApiModelProperty("门禁编码")
    @ExcelProperty(value = "门禁编码")
    private String door;

    /**
     * 月租
     */
    @Excel(name = "月租费")
    @ApiModelProperty("月租费")
    @ExcelProperty(value = "月租费")
    private BigDecimal monthPrice;

    @Excel(name = "缴费开始日期(非必填)", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("缴费开始日期(非必填)")
    @ExcelProperty(value = "缴费开始日期(非必填)")
    @DateTimeFormat("yyyy/MM/dd")

    private Date startDate;
    /**
     * 截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "缴费截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("缴费截止日期")
    @ExcelProperty(value = "缴费截止日期")
    @DateTimeFormat("yyyy/MM/dd")
    private Date endDate;

    /**
     * 余额 = (截止月份- 开始月份 )*月租
     */
    @ExcelProperty(value = "余额")
    @Excel(name = "余额")

    private BigDecimal balance;

}
